package com.example.tests;

import org.testng.annotations.Test;

@Test
public class TestGroupCreation extends TestBaseClassForAddressBook {
	

	public void createNonEmptyGroup() throws Exception {
		openMainPage();
		goToGroupCreationPage();
		openNewGroupFormCreation();
		GroupFields groupFieldsData = new GroupFields();
		groupFieldsData.group_name = "my group name one";
		groupFieldsData.group_header = "my group header name";
		groupFieldsData.group_footer = "my group footer name";
		fillGroupWithData(groupFieldsData);
		finishGroupCreation();
		returnBackToGroupPage();
		returnToHomePage();		
	}
	
	public void createEmptyGroup() throws Exception {
		openMainPage();
		goToGroupCreationPage();
		openNewGroupFormCreation();
		GroupFields groupFieldsData = new GroupFields();
		groupFieldsData.group_name = "group_name 2";
		groupFieldsData.group_header = "group_header_2";
		groupFieldsData.group_footer = "group_footer_2";
		fillGroupWithData(groupFieldsData);
		finishGroupCreation();
		returnBackToGroupPage();
		returnToHomePage();		
	}
}


